

const state = {
    showBack : true,
    weiCode: false,
    qqCode: false,
    appCode: false
}
const mutations = {
    UPDATE_showBack: (state, booleanBack) => {
        state.showBack = booleanBack;
    },
    UPDATE_weiCode: (state, booleanCode) => {
        state.weiCode = booleanCode;
    },
    UPDATE_qqCode: (state, booleanCode) => {
        state.qqCode = booleanCode;
    },
    UPDATE_appCode: (state, booleanCode) => {
        state.appCode = booleanCode;
    },

}
const actions = {
    update_showBack: ({ commit }, booleanCode) => {
        commit('UPDATE_showBack', booleanCode);   // 这个booleanBack会传给mutations的booleanBack
    },
    update_weiCode: ({ commit }, booleanCode) => {
        commit('UPDATE_weiCode', booleanCode);   // 这个booleanBack会传给mutations的booleanBack
    },
    update_qqCode: ({ commit }, booleanCode) => {
        commit('UPDATE_qqCode', booleanCode);   // 这个booleanBack会传给mutations的booleanBack
    },
    update_appCode: ({ commit }, booleanCode) => {
        commit('UPDATE_appCode', booleanCode);   // 这个booleanBack会传给mutations的booleanBack
    },

}

export default {
    namespaced: true,
    state,
    mutations,
    actions
}

// export default code
